home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / ODF Release 3 / ODFDev / Container / Sources / Defines.k < prev    next >
Encoding:
Text File  |  1996-12-16  |  3.0 KB  |  94 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Defines.k
  4. //    Release Version:    $ ODF 3 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef DEFINES_K
  11. #define DEFINES_K
  12.  
  13. #ifndef FWMENUS_K
  14. #include "FWMenus.k"
  15. #endif
  16.  
  17. //-------------------------------------------------------------------------------------
  18. // Uncomment the following three lines, and define them appropriately!!
  19. // If your part can be a container for other parts, define FW_SUPPORTS_EMBEDDING
  20. // to be 1.  Otherwise define it to be 0.
  21. // If your part defines any ODExtensions, define FW_SUPPORTS_EXTENSIONS to be
  22. // 1 to enable the extensions manager.  Otherwise, define it to be 0.
  23. // If your part is scriptable, define FW_SUPPORTS_SCRIPTING to be 1. Otherwise,
  24. // define it to be zero.  Note that if your part is scriptable is must support
  25. // extensions, so FW_SUPPORTS_EXTENSIONS must be defined to be 1.
  26. #define FW_SUPPORTS_EMBEDDING     1
  27. #define FW_SUPPORTS_EXTENSIONS     1
  28. #define FW_SUPPORTS_SCRIPTING     0
  29. #define FW_SUPPORTS_LINKING     0
  30.  
  31. //-------------------------------------------------------------------------------------
  32. // Icons ID
  33. #define kViewAsIconID            128
  34. #define kAboutIconID            130
  35.  
  36. //-------------------------------------------------------------------------------------
  37. // Frame Presentations
  38. #define kMainPresentation        "Apple:ODF:Presentation:Container:Main"
  39.  
  40. //-------------------------------------------------------------------------------------
  41. // Menus
  42. #define kMenuBar                1024
  43.  
  44. // ----- Commands -----
  45. #define cAsFrame                FW_kFirstUserCommandID
  46. #define cAsLargeIcon            cAsFrame + 1
  47. #define cAsSmallIcon            cAsLargeIcon + 1
  48. #define cAsThumbnail             cAsSmallIcon + 1
  49.  
  50. #define cZoom50                    cAsThumbnail + 1
  51. #define cZoom100                 cZoom50 + 1
  52. #define cZoom200                 cZoom100 + 1
  53.  
  54. #define cSetBackgroundColor        cZoom200 + 1
  55.  
  56. // sibling frames
  57. #define cAddSiblingFrame        cSetBackgroundColor + 1
  58.  
  59. //-------------------------------------------------------------------------------------
  60. // View resources & View IDs 
  61. #define kContainerView            1024
  62.  
  63. #define kContainerViewID        2
  64. #define kHorzScrollBarID        3
  65. #define kVertScrollBarID        4 
  66. #define kGrowBoxID                 5
  67.  
  68. //-------------------------------------------------------------------------------------
  69. // About
  70. #define kAbout                    1024
  71.  
  72. //-------------------------------------------------------------------------------------
  73. // Part Info 
  74. #define kPartInfoID                1024
  75.  
  76. //-------------------------------------------------------------------------------------
  77. // Strings
  78. #define kUndoStrings            1036
  79. #define kUndoResizeMsg              19
  80. #define kRedoResizeMsg             20
  81. #define kUndoEmbedAsMsg            21
  82. #define kRedoEmbedAsMsg            22
  83. #define kUndoSetBackColorMsg      23
  84. #define kRedoSetBackColorMsg      24
  85.  
  86.  
  87. //-------------------------------------------------------------------------------------
  88. // Misc. constants
  89. #define kDrawingSizeX            1024 * 5
  90. #define kDrawingSizeY            1024 * 5
  91.  
  92.  
  93. #endif
  94.